package com.kehutong.payfees.entity;

import java.util.List;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import com.kehutong.payfees.enums.ChargeAnnexEntityType;
import com.kehutong.payfees.enums.ChargeAnnexType;

@Table(value = "t_charge_annex", comment="缴费模块-附件", multi = true)
public class ChargeAnnex extends Entity {

    private static final long serialVersionUID = 7765810658045557102L;

    protected ChargeAnnex(String id) {
        super(id);
    }

    @Column(comment = "关联实体类型")
    private ChargeAnnexEntityType entityType;

    @Column(comment = "关联实体id")
    private String entityId;

    @Column(comment = "文件类型")
    private ChargeAnnexType type;

    @Column(comment = "文件系统的文件id数组")
    private List<String> fileIds;

    public ChargeAnnexEntityType getEntityType() {
        return entityType;
    }

    public void setEntityType(ChargeAnnexEntityType entityType) {
        this.entityType = entityType;
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }

    public ChargeAnnexType getType() {
        return type;
    }

    public void setType(ChargeAnnexType type) {
        this.type = type;
    }

    public List<String> getFileIds() {
        return fileIds;
    }

    public void setFileIds(List<String> fileIds) {
        this.fileIds = fileIds;
    }
}
